package com.akkainaction.dispatcher.hello;

import akka.actor.ActorRef;
import akka.actor.ActorSystem;
import akka.actor.Props;
import com.akkainaction.dispatcher.hello.actor.DispatcherActor;
import com.typesafe.config.ConfigFactory;

public class TestDispatcherActor {

    public static void main(String[] args) {
        ActorSystem system = ActorSystem.create("sys", ConfigFactory.load("dispatcher"));
        ActorRef dispatcherActor = system.actorOf(Props.create(DispatcherActor.class).withDispatcher("my-forkjoin-dispatcher"), "dispatcherActor");
        dispatcherActor.tell("hello dispatcher", ActorRef.noSender());
    }
}
